package com.ruoyi.match.domain;

import java.util.Date;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 撮合公告对象 ch_notice
 * 
 * @author ruoyi
 * @date 2023-12-15
 */
public class ChNotice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @ExcelProperty(value = {"订单详情", "订单ID"})
    private Integer id;

    /** 公告发布人 */
    @ExcelProperty(value = {"订单详情", "公告发布人"})
    private String name;

    /** 公告内容 */
    @ExcelProperty(value = {"订单详情", "公告内容"})
    private String contents;

    /** 省ID */
    @ExcelProperty(value = {"订单详情", "公告地址"})
    private Integer addressId;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ExcelProperty(value = {"订单详情", "发布时间"})
    private Date createdTime;

    /** 图片附件 */
    @ExcelProperty(value = {"订单详情", "图片附件"})
    private String photo;

    public String getProvinceCityDistrict() {
        return provinceCityDistrict;
    }

    public void setProvinceCityDistrict(String provinceCityDistrict) {
        this.provinceCityDistrict = provinceCityDistrict;
    }

    private String provinceCityDistrict;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setContents(String contents) 
    {
        this.contents = contents;
    }

    public String getContents() 
    {
        return contents;
    }
    public void setAddressId(Integer addressId) 
    {
        this.addressId = addressId;
    }

    public Integer getAddressId() 
    {
        return addressId;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setPhoto(String photo) 
    {
        this.photo = photo;
    }

    public String getPhoto() 
    {
        return photo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("contents", getContents())
            .append("addressId", getAddressId())
            .append("createdTime", getCreatedTime())
            .append("photo", getPhoto())
            .append("provinceCityDistrict", getProvinceCityDistrict())
            .toString();
    }
}
